.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.d-inline-block {
  display: inline-block;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-center {
  justify-content: center;
}

.align-items-start {
  align-items: flex-start;
}

.align-items-end {
  align-items: flex-end;
}

.align-items-center {
  align-items: center;
}

.flex-1 {
  flex: 1;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}
.scrollbar {
  overflow: auto;
}

.session-wrapper {
  background: #fff;
  padding: @base-gutter;
  border-radius: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

// 搜索组件
.search-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  &>.ant-input {
    width: 150px;
  }

  &>.ant-select {
    min-width: 150px;
  }

  &>:nth-child(n) {
    margin-bottom: @base-gutter;
  }

  &>:not(:last-child) {
    margin-right: @base-gutter;
  }
}

.origin-table {
  width: auto;
  min-width: 100%;
  text-align: left;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;

  thead {
    tr {
      th {
        position: sticky;
        top: 0;
        z-index: 20;
        color: #1a1a1a;
        font-weight: bold;
        white-space: nowrap;
        word-break: break-word;
        background: #FCFAFB;
        border-bottom: 1px solid @base-border;
        border-top: 1px solid @base-border;
      }

      &:not(:last-child) {
        th[colspan] {
          border-bottom: 1px solid @base-border;
        }
      }

      &:nth-child(n+2) {
        th {
          top: 29px;
        }
      }
    }
  }

  tbody,
  tfoot {
    tr {
      td {
        position: relative;
        max-width: 600px;
        height: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-bottom: 1px solid @base-border;
      }
    }
  }

  tr>th,
  tr>td {
    padding: 12px;
    font-size: 12px;
  }

  &.hadBorder {
    border-left: 1px solid @base-border;

    tr>th,
    tr>td {
      border-right: 1px solid @base-border;

    }
  }

}

.table-wrapper {
  width: 100%;
  flex: 1;
  overflow: hidden;
  // overflow: auto;
  .ant-table-wrapper,
  .ant-spin-nested-loading,
  .ant-table-container,
  .ant-table-content {
    height: 100%;
  }
  .ant-spin-container {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .ant-table {
    flex: 1;
    overflow: hidden;
  }
  .ant-table-content {
    overflow: auto;
  }
  .ant-table-tbody>tr>td,
  .ant-table-thead > tr > th {
    // display: block;
    max-width: 600px;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .ant-table-thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .ant-table-pagination.ant-pagination {
    margin: 16px 0 0;
  }
}

.w-100 {
  width: 100px;
}

.w-150 {
  width: 150px;
}

.m-b-4 {
  margin-bottom: 4px;
}

.m-t-4 {
  margin-top: 4px;
}

.p-l-5 {
  padding-left: 5px;
}

.success {
  color: #52c41a;
}

.error {
  color: #ff4d4f;
}

.warning {
  color: #faad14;
}

.light {
  color: #666;
}

.font-12 {
  font-size: 12px;
}

.mr-sm {
  margin-right: 8px;
}

.mr-md {
  margin-right: 16px;
}

.mb-md {
  margin-bottom: 16px;
}